package day014.homework.p8;

import java.util.LinkedHashSet;

public class Test {
    public static void main(String[] args) {
        LinkedHashSet<Integer> set = new LinkedHashSet<>();
        set.add(20);
        set.add(30);
        set.add(50);
        set.add(10);
        set.add(30);
        set.add(20);

        System.out.println(set.size());

        for (Integer i : set) {
            System.out.print(i);
            System.out.print(" ");
        }
    }
}
